FROM alibabadragonwell/dragonwell:17-anolis

LABEL name="jeecg-cloud-nacos"

LABEL version="3.6.3"

LABEL description="Jeecg Cloud Nacos"

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /root/jeecg-cloud-nacos

WORKDIR /root/jeecg-cloud-nacos

EXPOSE 8848

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms256m -Xmx512m"

ADD ./target/jeecg-cloud-nacos-3.6.3.jar ./

#CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -Dnacos.standalone=true -jar jeecg-cloud-nacos-3.6.3.jar ${JAVA_OPTS}
ENTRYPOINT ["sh","-c","sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -Dnacos.standalone=true -jar jeecg-cloud-nacos-3.6.3.jar ${JAVA_OPTS}"]